fix logic error in the wifi plugin
authorJohn Crispin <[email protected]>
Mon, 26 May 2025 09:09:50 +0000 (11:09 +0200)
committerJohn Crispin <[email protected]>
Mon, 26 May 2025 10:30:33 +0000 (12:30 +0200)
Signed-off-by: John Crispin <[email protected]>
files/usr/share/ufp/plugin_wifi.uc

index 723cd07e1c66f79943c8e44313c1e4ab671c7071..693d3c02e4fee848be4ed042440fb78477ac1285 100644 (file)
@@ -294,7 +294,7 @@ function refresh()
                        let clients = ubus.call(ap, "get_clients").clients;
                        for (let client in clients) {
                                let client_cache = prev_ap_cache[client];
-                               if (!client_cache || client_cache.assoc_ie || !client_cache.probe_ie)
+                               if (!client_cache || !client_cache.assoc_ie || !client_cache.probe_ie)
                                        client_cache = client_refresh(ap, client);
                                global.device_refresh(client);
                        }